//
//  JPFDataPickerView.h
//  JPFUI
//
//  Created by JPFei on 2019/3/14.
//  Copyright © 2019 nmo. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "JPFToolbar.h"

NS_ASSUME_NONNULL_BEGIN

@class JPFDataPickerView;
@protocol JPFDataPickerViewDelegate <NSObject>

@optional
- (NSString *)dataPickerView:(JPFDataPickerView *)pickerView itemTitle4Data:(id)data;
@optional
- (NSString *)dataPickerView:(JPFDataPickerView *)pickerView itemTitle4Data:(id)data level:(NSInteger)level;

@end

@interface JPFDataPickerView : UIButton

/** 当前省数组 */
@property (strong, nonatomic) NSArray *arrLayer0;

@property (nonatomic, strong) id<JPFDataPickerViewDelegate> dataDelegate;

@property (copy, nonatomic) void(^selectedBlock)(id info0,id info1,id info2);
/** 工具器 */
@property (nonatomic, strong, nullable)JPFToolbar *toolBar;

- (instancetype)initWithData:(nullable NSDictionary *)dicData layerCount:(NSInteger)layerCount;

- (void)loadAddressData;


//显示
- (void)show;

@end

NS_ASSUME_NONNULL_END
